#pragma once
#include "ZerglingBloodMacros.h"
#include <BWAPI.h>
using namespace BWAPI;

class ZBAttackManager
{
private:
	BWAPI::Game* Broodwar;
	Position lastKnownDShipPos;
	int lastKnownDShipTime;
	int dShipStatus;
	Unit* dShip;

	enum dship_status{FOUND, LOST};

public:
	ZBAttackManager(){}
	ZBAttackManager(Game * BW);
	int whichBase(Position p);
	void lostDShip(Position p, int t)
	{
		dShip = NULL;
		lastKnownDShipPos = p;
		lastKnownDShipTime = t;
		dShipStatus = LOST;
	}
	void foundDShip(Unit* ship)
	{
		dShip = ship;
		dShipStatus = FOUND;
	}

	//When the enemy dropship is lost, draws a circle around where it was last seen
	void drawDShipPosition();
};